rm -rf data/*
rm -rf export/*

docker rm -f docker_mysql_test

docker run \
  --name docker_mysql_test \
  -v /root/code/docker/mysql/data/:/var/lib/mysql/ \
  -v /root/code/docker/mysql/mysql/sql/:/docker-entrypoint-initdb.d/ \
  -v /root/code/docker/mysql/export/:/var/lib/mysql-files/ \
  -e MYSQL_ROOT_PASSWORD=root \
  -d mysql:5.7

sleep 3

docker exec -t docker_mysql_test chmod 777 /var/lib/mysql-files/
